import { Application } from 'egg';

const baseUrl = '/hotwind/';
export default (app: Application) => {
  const { controller, router } = app;
  // 调用示例，调用之后在dictionary.ts中配置
  router.post(`${baseUrl}goods/goodsQuery`, controller.commonpost.query);
  router.post(`${baseUrl}goods/goodsUpdate`, controller.commonpost.update);
  router.post(`${baseUrl}goods/goodsAdd`, controller.commonpost.add);
  router.post(`${baseUrl}goods/goodsDelete`, controller.commonpost.delete);
};
